﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Linq.Mapping;

namespace QuanLyPhongMach.Model
{
    [Table (Name="Thuoc")]
    public class CThuoc
    {
        #region Properties
        [Column(Name = "MaThuoc", IsPrimaryKey = true)]
        public int MaThuoc { get; set; }

        [Column(Name = "TenThuoc")]
        public string TenThuoc { get; set; }

        [Column(Name = "DonGiaQuyDinh")]
        public int DonGiaQuyDinh { get; set; }

        [Column(Name="SoLuongTon")]
        public int SoLuongTon { get; set; }
        #endregion

        #region Constructor
        public CThuoc()
        { }

        public CThuoc(string tenthuoc, int dongiaquydinh, int soluongton)
        {
            // TODO: Complete member initialization
            this.DonGiaQuyDinh = dongiaquydinh; 
            this.TenThuoc = tenthuoc;
            this.SoLuongTon = soluongton;
        }
        #endregion
    }
}
